function toastShow(str) {
    var $toast = $(".toast-box");
    if (!$toast.length) {
        $toast = $('<div class="toast-box"></div>');
        $toast.html(str);
        $("body").append($toast);
        setTimeout(function () {
            $toast.addClass("none");
        }, 3000);
    } else {
        if ($toast.hasClass("none")) {
            $toast.html(str);
            $toast.removeClass("none");
            setTimeout(function () {
                $toast.addClass("none");
            }, 3000);
        }
    }
}